export const GET="get";
export const POST="post";
export const PUT="put";
export const DELETE="delete";

export const path = {
  // ==================== 用户模块 ====================
  login: "/user/api/user/login",
  register: "/user/api/user/register",
  getUserInfo: "/user/api/user/info",
  updateUser: "/user/api/user/update",
  uploadAvatar: "/user/api/user/uploadHead",
  getUserBaseCount: "/user/api/user/baseInfoCount",

  // ==================== 房源模块 ====================
  getHouseList: "/house/api/house/list",
  pendingHouseList: "/house/api/house/pending",
  publishHouse: "/house/api/house/publish",
  updateHouse: "/house/api/house/update",
  deleteHouse: "/house/api/house/", // 需要拼接ID
  getHouseDetail: "/house/api/house/", // 需要拼接ID
  searchHouse: "/house/api/house/search",
  findHouseByRole: "/house/api/house/findByRole",
  uploadHousePic: "/house/api/house/uploadPic",
  auditHouse: "/house/api/house/audit",

  // ==================== 预约模块 ====================
  createAppointment: "/appointment/api/appointment/create",
  getMyAppointments: "/appointment/api/appointment/myList",
  getLandlordAppointments: "/appointment/api/appointment/landlordList",
  handleAppointment: "/appointment/api/appointment/handle",
  cancelAppointment: "/appointment/api/appointment/cancel",
  getAppointmentDetail: "/appointment/api/appointment/", // 需要拼接ID

  // ==================== 申请模块 ====================
  createApply: "/appointment/api/apply/create",
  getMyApplies: "/appointment/api/apply/myList",
  getLandlordApplies: "/appointment/api/apply/landlordList",
  handleApply: "/appointment/api/apply/handle",
  cancelApply: "/appointment/api/apply/cancel",
  getApplyDetail: "/appointment/api/apply/", // 需要拼接ID

  // ==================== 收藏模块 ====================
  addCollection: "/house/api/collection/add",
  removeCollection: "/house/api/collection/", // 需要拼接houseId
  checkCollection: "/house/api/collection/check/", // 需要拼接houseId
  getMyCollections: "/house/api/collection/myList",

  // ==================== 消息模块 ====================
  getMessageList: "/message/api/message/list",
  readMessage: "/message/api/message/read/", // 需要拼接ID
  readMessageBatch: "/message/api/message/readBatch",
  getUnreadCount: "/message/api/message/unreadCount",
  deleteMessage: "/message/api/message/", // 需要拼接ID
  getMessageDetail: "/message/api/message/", // 需要拼接ID

  // ==================== 图片上传 ====================
  uploadPic: "/house/api/pic/upload",
  deletePic: "/house/api/pic/", // 需要拼接ID
  uploadFile: "/api/file/upload",
  deleteFile: "/api/file/delete",
};
